package com.zh.client.user.service;

import com.zh.pojo.Orderitem;
import com.zh.pojo.Orders;
import com.zh.pojo.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    int addUser(User user, HttpServletRequest request);

    int activeUser(String activeCode);

    int findmail(String email);

    int findusername(String username);

    User findUserByLogin(User user);

    int modifyUser(User user);

    List<Orders> findOrderByUser(Integer id);

    List<Orderitem> findOrderitemById(String id);

    void removeOrderById(String id, String flag);
}
